﻿using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.BackgroundWorkers;
using Volo.Abp.Threading;

namespace Himp.TaskScheduling
{
    public class ParamConfigWorker : AsyncPeriodicBackgroundWorkerBase
    {
        public ParamConfigWorker(AbpAsyncTimer timer
            ,IServiceScopeFactory serviceScopeFactory) : base(timer, serviceScopeFactory)
        {
            Timer.Period = 6000; //10 minutes
        }

        protected async override Task DoWorkAsync(
            PeriodicBackgroundWorkerContext workerContext)
        {
            //var obj = RedisHelper.Get("AsRb_Cmd_Code");
            //Logger.LogInformation(obj.ToString()) ;
        }
    }
}
